<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>

var gz= prompt("请输入您的工资！")
console.log("gz");
// 备用 工资总额
var by=gz;

if(gz<=7662){
    gz=gz*(0.08+0.02+0.005+0.12)
    alert("三险一金"+gz)

}
else{
    gz=7662*(0.08+0.02+0.005+0.12)
    alert("三险一金"+gz)
}
alert(by);
// 应纳税所得额
gz=by-gz-3500;
alert(gz);

if(gz<=1500){
    gz=gz*0.03
    alert("应纳税所得额"+gz)
}
else if(gz>=1500&&gz<=4500){
    gz=gz*0.1-105;
     alert("应纳税所得额"+gz)
    
}
else if(gz>=4500&&gz<=9000){
    gz=gz*0.2-555;
     alert("应纳税所得额"+gz)
}
else if(gz>=9000){
    gz=gz*0.25-1005;
     alert("应纳税所得额"+gz)
}
















</script>
